<!--{include header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="recent-deals">
<!--{if option_yes('cateseconds')}-->
	<!--<div class="dashboard" id="dashboard">
		<ul>${current_teamcategory($group_id)}</ul>
	</div>-->
<!--{/if}-->

<script type="text/javascript">

$('.ptl .choose a').hover(function(){

	$('.ptl .tl').show();

},function(){});

$('.ptl').hover(function(){},

    function(){

        $('.ptl .tl').hide();

    });

</script>
<div class="selector listpage">

<div class="option">

  <ul class="listblock lb1">

   <li class="op o3">团购分类</li>

  </ul>

  <ul class="listblock lb2">

   <li><a href="seconds.php?gid={$gid}"   class="<!--{if !$sid}-->focus<!--{/if}-->">全部分类</a>

   

   <!--{loop $cates $index $one}-->

         <!--{if $gid}-->

         

           <li><a href="seconds.php?gid={$gid}&sid={$one['id']}" class="<!--{if $sid == $one['id']}-->focus<!--{/if}-->">{$one['name']}<span>{$one['number']}</span></a></li>

         <!--{else}-->

            <li><a href="seconds.php?gid={$one['id']}">{$one['name']}<span>{$one['number']}</span></a></li>

         <!--{/if}-->

   <!--{/loop}-->

     

    </ul>

 </div>

</div>


    <div id="content">
        <div class="box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"></div>
				<div class="sect">
					<ul class="deals-list">
					<!--{loop $teams $index $one}-->
						<li class="${$index++%2?'alt':''} ${$index<=2?'first':''}" style="margin-right:10px;">
							<div class="pic">
								<div class="seconds_${$one['begin_time'] > time() ? 'wait' : ($one['end_time'] < time() ? 'off' : 'on')}"></div>
								<a href="/team.php?id={$one['id']}" title="{$one['title']}" target="_blank"><img alt="{$one['title']}" src="${team_image($one['image'], true)}" width="255"></a>
							</div>
							<p class="time">${date('Y年n月j日 H:i:s', $one['begin_time'])} 至 ${date('H:i:s', $one['end_time'])}</p>
							<h4><a href="/team.php?id={$one['id']}" title="{$one['title']}" target="_blank">${mb_strimwidth($one['title'],0,86,'...')}</a></h4>
							<div class="info">
								<p class="price"><strong class="discount"><span class="money">{$currency}</span>${moneyit($one['team_price'])}</strong><strong class="old"><span class="money">{$currency}</span>${moneyit($one['market_price'])}</strong><br />折扣：<strong>${team_discount($one)}折</strong>节省：<strong><span class="money">{$currency}</span>${moneyit($one['market_price']-$one['team_price'])}</strong><br /></p>
								<p class="total"><strong class="count">{$one['now_number']}</strong>人购买</p>
							</div>
							<!--{if option_yes('moneysave')}--><div id="info_a">共为用户节省:<strong class="count">{$currency}${moneyit($one['now_number']*($one['market_price']-$one['team_price']))}</strong></div><!--{/if}-->
						</li>
					<!--{/loop}-->
					</ul>
					<div class="clear"></div>
					<div class="pageturning">
						{$pagestring}
					</div></div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>

<!--{include footer}-->
